

// TODO @dhb52：vo 缺少

import couponApi from "@/api/declaration/mall/couponApi"
import httpRequest from "@/config/axios/httpRequest"

// 删除优惠劵
export const deleteCoupon = async (id: number) => {
 return httpRequest.delete(couponApi.DeleteCoupon, { params: { id } })
}

// 获得优惠劵分页
export const getCouponPage = async (params: PageParam) => {
  return httpRequest.get(couponApi.GetCouponPage, {params})
}

// 发送优惠券
export const sendCoupon = async (data: any) => {
  return httpRequest.post(couponApi.SendCoupon, data)
}
